package com.wx.mp.dao;

import com.wx.mp.domain.TCarSubscribe;
import com.wx.mp.request.subscribe.oper.CarSubscribeSaveReq;
import com.wx.mp.request.subscribe.query.QuerySubscribeInfosReq;
import com.wx.mp.request.subscribe.query.QuerySubscribeInfosRes;
import com.wx.mp.utils.BizResult;
import com.wx.mp.utils.PageBean;
import org.apache.ibatis.annotations.Param;

/**
 *
 * 车辆预约
 * Copyright: Copyright (c) 2017
 *
 * @ClassName: TCarSubscribeDao.java
 * @Description:
 * @version: v1.0.0
 * @author: wangfs
 * @date: 2019-01-12 10:01
 * Modification History:
 * Date             Author          Version            Description
 * ---------------------------------------------------------*
 * 2019-01-12     wangfs              v1.0.0               创建
 */
public interface TCarSubscribeDao {

    /**
     * 预约车辆信息保存.<br/>
     * @param request
     * @return
     */
    BizResult<Integer> saveTCarSubscribe(CarSubscribeSaveReq request);


    /**
     * 分页查询预约信息
     * @param request
     * @return
     */
    BizResult<PageBean<QuerySubscribeInfosRes>> querySubscribeInfos(QuerySubscribeInfosReq request);

    /**
     * 更改预约订单状态
     * @param subscribeState
     */
    void updateSubscribeState(Long id,Integer subscribeState);
}
